/* 
 * File:   StaticDataEntry.h
 * Author: jeffrey
 *
 * Created on June 21, 2010, 1:45 AM
 */

#ifndef _STATICDATAENTRY_H
#define	_STATICDATAENTRY_H
#include <string>

using namespace std;

class StaticDataEntry {
public:
    StaticDataEntry();
    StaticDataEntry(const StaticDataEntry& orig);
    virtual ~StaticDataEntry();

    string getAttribName() const {
        return attribute_name;
    }

    void setAttribName(string attribute_name) {
        this->attribute_name = attribute_name;
    }

    string getSourceA() const {
        return source_attrib;
    }

    void setSourceA(string source_attrib) {
        this->source_attrib = source_attrib;
    }

    string getSourceT() const {
        return source_tbl;
    }

    void setSourceT(string source_tbl) {
        this->source_tbl = source_tbl;
    }

    string getVal() const {
        return value;
    }

    void setVal(string value) {
        this->value = value;
    }

    friend ostream & operator<<(ostream&, const StaticDataEntry&);
    void print();
 
private:

    string attribute_name;
    string value;
    string source_tbl;
    string source_attrib;
};

StaticDataEntry::StaticDataEntry() {
}

StaticDataEntry::StaticDataEntry(const StaticDataEntry& orig) {
    attribute_name = orig.attribute_name;
    value = orig.value;
    source_tbl = orig.source_tbl;
    source_attrib = orig.source_attrib;
}

StaticDataEntry::~StaticDataEntry() {
}

ostream & operator<<(ostream& output, const StaticDataEntry& data) {
    return output << "attribute_name: " << data.getAttribName() << "\n"
                  << "value: " << data.getVal() << "\n"
                  << "source_table: " << data.getSourceT() << "\n"
                  << "source_attribute: " << data.getSourceA() << "\n";
}

void StaticDataEntry::print() {
    cout << "attribute_name: " << this->getAttribName() << endl
            << "value: " << this->getVal() << endl
            << "source_table: " << this->getSourceT() << endl
            << "source_attribute: " << this->getSourceA() << endl;

}
#endif	/* _STATICDATAENTRY_H */

